<?php

class Summary_memberController extends AdminController {


    public function actionView() {


        $model['member_passive'] = function_lib::get_one("count(*)", "sys_network", "network_level_status = 'passive'");
        $model['member_distributor'] = function_lib::get_one("count(*)", "sys_network", "network_level_status = 'distributor'");
        $model['member_warehouse'] = function_lib::get_one("count(*)", "sys_network", "network_level_status = 'warehouse'");
        $model['member_factory'] = function_lib::get_one("count(*)", "sys_network", "network_level_status = 'factory'");

        $model['member_total'] = $model['member_passive'] + $model['member_distributor'] + $model['member_warehouse'] + $model['member_factory'];

        $this->render('view', array('model' => $model,
        ));



    }

}
